$('document').ready(function(){
  var email = $('#email');
  var password = $('#password');
  
  if(email.val() == '') {
    email.focus();
  }
  else {
    password.focus();
  }
});